package com.ce.framework.log4j;

import java.io.File;
import java.io.IOException;

import org.apache.log4j.DailyRollingFileAppender;

public class CsmisDailyRollingFileAppender extends DailyRollingFileAppender {

	@Override
	public synchronized void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize) throws IOException {
		
		File f = new File(fileName);
		if(!f.getParentFile().exists())
			f.getParentFile().mkdirs();
		super.setFile(fileName, append, bufferedIO, bufferSize);
	}

}
